// Package main
package main

import (
	"log"
	"net/http"

	"git.oschina.net/baayso/gobms/controllers"
	"git.oschina.net/baayso/gobms/core/utils"
)

func init() {
}

func main() {
	addr := utils.Conf.GetValue("listenAddr")

	http.HandleFunc("/", controllers.SayHello)      //设置访问的路由
	http.HandleFunc("/hello", controllers.SayHello) //设置访问的路由

	http.HandleFunc("/userList", controllers.GetPaginationUserList)

	err := http.ListenAndServe(addr, nil) //设置监听的端口
	if err != nil {
		log.Fatal("ListenAndServe: ", err)
	}
}
